翻訳と辞書
Words near each other
・ Identity and Action
・ Identity and change
・ Identity and Language Learning
・ Identity assurance
・ Identity based motivation
・ Identity by descent
・ Identity by type
・ Identity card BES
・ Identity card of the Russian Armed Forces
・ Identity Cards Act 2006
・ Identity Caucus
・ Identity change
・ Identity channel
・ Identity cleansing
・ Identity code
Identity column
・ Identity Commissioner
・ Identity Commons
・ Identity component
・ Identity Connectors
・ Identity control theory
・ Identity correlation
・ Identity creation
・ Identity crisis
・ Identity Crisis (Clea album)
・ Identity Crisis (DC Comics)
・ Identity crisis (disambiguation)
・ Identity Crisis (film)
・ Identity Crisis (Marvel Comics)
・ Identity Crisis (Shelby Lynne album)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Identity column : ウィキペディア英語版
Identity column
An Identity column is a column (also known as a field) in a database table that is made up of values generated by the database. This is much like an AutoNumber field in Microsoft Access or a sequence in Oracle. Because the concept is so important in database science, many RDBMS systems implement some type of generated key, although each has its own terminology.
An identity column differs from a primary key in that its values are managed by the server and usually cannot be modified. In many cases an identity column is used as a primary key, however this is not always the case.
It is a common misconception that an identity column will enforce uniqueness, however this is not the case. If you want to enforce uniqueness on the column you must include the appropriate constraint too.
In Microsoft SQL Server you have options for both the seed (starting value) and the increment. By default the seed and increment are both 1.
==Code Samples==

Create Table Contacts (
FirstName varChar(30),
LastName varChar(30),
Phone varChar(16),
ContactID int identity(1, 1)
)

or

Create Table Contacts (
FirstName varChar(30),
LastName varChar(30),
Phone varChar(16)
)
GO
Alter Table Contacts Add ContactID int identity(1, 1)


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Identity column」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.